package main

import "fmt"

func pass_by_value(a int) int {
	a++
	return a
}

func pass_by_ref(a *int) int {
	*a++
	return *a
}

func swap(a, b *int) {
	*b, *a = *a, *b
}

func main() {
	var a int = 10
	fmt.Println(a)
	fmt.Println(pass_by_value(a))
	fmt.Println(pass_by_ref(&a))

	var b, c = 3, 4
	swap(&b, &c)
	fmt.Println(b, c)
}
